home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.lang.c.moderated,comp.lang.c++
- Subject: Re: Is C/C++ convertor available ???
- Date: 8 Apr 1996 22:46:19 -0500
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4kcmib$ova@solutions.solon.com>
- References: <4k5vt7$a3c@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4k5vt7$a3c@solutions.solon.com>,
- Venki Ramachandran <venkir@CellNet.com> wrote:
- >Hi gurus,
- >How do i convert C++ code to C. I heard that g++ or gcc has an option at the
- >command line to do that. Can anyone direct me in the right direction ??
-
- You heard wrong. g++ is a C++ compiler, not a C++ to C translator, and it has
- no such option.
-
- One software which does C++ to C translation is called ``cfront''. Some systems
- (e.g. HP-UX) use this as their C++ compiler. If you want a one-time translation
- job done, rent some time on a system that has cfront, such as a HP workstation
- running HP-UX:
-
-
- CC(1) CC(1)
-
- NAME
- CC - C++ translator/compiler
-
- SYNOPSIS
- CC [ options ] files
-
- DESCRIPTION
- CC (capital CC) is the HP-UX C++ translator/compiler. In translator
- mode CC translates C++ source code to C source code. In compiler mode
- CC compiles C++ source code directly to object code.
-
- The command uses cpp(1) for preprocessing, cfront for syntax and type
- checking, as well as for code generation in compiler mode, and cc(1)
- for code generation in translator mode.
-
- --
-